package com.ylkj.core.vo;

import java.util.List;

/**
 * 查询结果集
 * 
 * @author 呼云飞
 *
 * @param <T>
 */
public class QueryResult<T> {

    private boolean success;

    private List<T> data;

    private int total;

	private int num;

    private int page;

    private int pageCount ;

	public QueryResult() {

	}

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getPageCount() {
        return pageCount;
    }

    public void setPageCount(int pageCount) {
        this.pageCount = pageCount;
    }

    public QueryResult(int page, int num, int total, List<T> data) {
		this.page = page;
		this.num = num;
		this.data = data;
		this.total = total;
	}


	public QueryResult(List<T> data,int total) {
		this.total = total;
		this.data = data;
	}

    public QueryResult(boolean success, List<T> data, int total, int num, int page, int pageCount) {
        this.success = success;
        this.data = data;
        this.total = total;
        this.num = num;
        this.page = page;
        this.pageCount = pageCount;
    }
}
